package aidansmeaton.airport.structures;

import java.util.ArrayList;
import java.util.List;

import aidansmeaton.airport.database.DatabaseHelper;
import android.content.Context;
import android.database.Cursor;

public class Game {
	
	private DatabaseHelper db;
	private Context context;
	
	private String airline;
	private List<Hub> hubs;
	
	public Game(Context context){
		
		this.context = context;
		this.db = DatabaseHelper.getInstance(context);
		
		this.setAirline("Aviiva");
		this.hubs = new ArrayList<Hub>();
		Cursor c = db.getAirport("Glasgow", "United Kingdom");
		c.moveToFirst();
		this.hubs.add(new Hub(c));
		
	}

	public void setAirline(String airline) {
		this.airline = airline;
	}

	public String getAirline() {
		return airline;
	}
	
	public List<Hub> getHubs() {
		return hubs;
	}

	public void setHubs(List<Hub> hubs) {
		this.hubs = hubs;
	}
	
}
